<?php
crontab 定时任务：

crontab命令详解 含启动/重启/停止：
https://www.cnblogs.com/kenshinobiy/p/7685229.html

关于cron和crontab的那些事:
http://www.wuliaole.com/post/what_you_need_to_know_about_cron_and_crontab/

Linux 中 fg、bg、jobs 等指令:
https://ehlxr.me/2017/01/18/Linux-%E4%B8%AD-fg%E3%80%81bg%E3%80%81jobs%E3%80%81-%E6%8C%87%E4%BB%A4/


while true
do
    if [ $(date +%H-%M) = '00-01' ] ; then
        echo "时间相同";
    fi
    echo $(date '+%Y-%m-%d %T')
    sleep 30
done

nohup ./00-01.sh > nohup.txt 2>&1 &



nohup ./git-update-crontab.sh 2> /dev/null &

#!/bin/bash
while true
do
  #cd /alidata/www/banzhuren-assistant/ && git pull >> /root/git.txt
  git=$(cd /alidata/www/banzhuren-assistant/ && git pull)
  if [$git = 'Already up-to-date.'];then
    echo $(date '+%Y-%m-%d %T') >> /root/git.txt
    echo $git >> /root/git.txt
  fi
  sleep 60
done







Take me hand
可能否


date +%Y%m%d-%H-%M

date +%Y%m%d-%k

% M 分


